 /**
  * 路由请求 : 链表资产
  * @Author  : ljq
  * @Created : 2025/10/14
  */
import request from '@/utils/request'

// 查询链表资产列表
export function listChain(query) {
  return request({
    url: '/business/chain/list',
    method: 'get',
    params: query
  })
}

// 查询链表资产详细
export function getChain(id) {
  return request({
    url: '/business/chain/' + id,
    method: 'get'
  })
}

// 多查询链表资产详细
export function getChainBatch(ids) {
  return request({
    url: '/business/chain/batch/' + ids,
    method: 'get'
  })
}

// 新增链表资产
export function addChain(data) {
  return request({
    url: '/business/chain/',
    method: 'post',
    data: data
  })
}

// 修改链表资产
export function updateChain(data) {
  return request({
    url: '/business/chain/',
    method: 'put',
    data: data
  })
}

// 删除链表资产
export function delChain(id) {
  return request({
    url: '/business/chain/' + id,
    method: 'delete'
  })
}
